home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
10-03.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-07
|
568b
|
35 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
REM initialize the video environment
IF FGtestmode(13,1) = 0 THEN
PRINT "This program requires EGA."
STOP
END IF
OldMode = FGgetmode
FGsetmode 13
FGsetfunc 3
REM draw some type of background
FGsetcolor 15
FGrect 0, 319, 0, 199
REM move the object across the screen
FGsetcolor (10 XOR 15)
FOR X = -20 TO 315 STEP 5
FGclprect X, X+19, 95, 104
FGwaitfor 1
FGclprect X, X+19, 95, 104
NEXT
REM restore the original video mode and return to DOS
FGsetmode OldMode
FGreset
END